package com.ynet.middleground.contract.bean;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 时间戳加戳请求信息
 * @date 2020-04-12 13:29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "时间戳加戳请求信息", description = "时间戳加戳请求信息")
public class TimestampReq extends EnterpriseBaseReqObj {

    private static final long serialVersionUID = 8002449045128628252L;

    @ApiModelProperty(value = "待加戳 json 字符串", notes = "待加戳 json 字符串，应包含操作人、时间、具体内容", dataType = "String",
        required = true)
    @NotBlank(message = "待加戳 json 字符串不能为空")
    private String json;

    @ApiModelProperty(value = "合约 id", notes = "合约 id", dataType = "Integer")
    private Integer contractId;

    @ApiModelProperty(value = "场景描述", notes = "场景描述", dataType = "String")
    private String sceneDesc;
}
